package com.reebake.ideal.security.oauth2.properties;

import cn.hutool.core.collection.CollectionUtil;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.Set;

@Data
@ConfigurationProperties("security.oauth2.resource")
public class OAuth2ResourceProperties {
    /** 忽略鉴权的url */
    private Set<String> permitAllUrls = CollectionUtil.newHashSet("/error");
    /** 参与鉴权的url */
    private Set<String> resourceUrls = CollectionUtil.newHashSet("/open/**");
}
